package com.example.dajian_hou.service;

import com.example.dajian_hou.entity.User;
import java.util.List;
import java.util.Map;

public interface UserService {
    User login(String username, String password);
    List<User> findAll();
    Map<String, Object> findByPage(Integer pageNum, Integer pageSize, String keyword);
    User findById(Long id);
    void save(User user);
    void update(User user);
    void deleteById(Long id);
    void deleteByIds(List<Long> ids);
    boolean verifyPassword(Long userId, String password);
    void updatePassword(Long userId, String newPassword);
    void updateUserInfo(User user);
}
